#ifndef tmApplication_h__
#define tmApplication_h__
#include "./tmInclude.h"

using namespace GLES;

class tmMainWindow;
#include "./tmTimer.h"
#include "./tmMainWindow.h"
class tmApplication : public GLES::Object
{
	
	
	public:
		tmApplication();
		~tmApplication();
		BOOL	initialise(HWND hwnd,RectI& rect);
		VOID	finalise();
		VOID	onInput(int x,int y,InputType state);
		VOID	drawWindow();
		VOID	onTimer();
		VOID	Finalise();
		tmMainWindow* getWindow(){return _pWindow;};
	private:
		tmMainWindow* _pWindow;
		tmTimer		  _timer;
		
};
#endif // tmApplication_h__